home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re somGetGlobalEnvironment() < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  973 b   |  [TEXT/ttxt]

  1. Subject:     Re: somGetGlobalEnvironment()
  2. Sent:        3/12/96 9:30 AM
  3. Received:    3/12/96 8:51 AM
  4. From:        Jim Lloyd, jim@melongem.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 6:41 AM 3/12/96, Arni McKinley wrote:
  9. >What does the Global function
  10. >
  11. >Environment *ev = somGetGlobalEnvironment()
  12. >
  13. >really do and wy do we pass 'ev' around to everything in ODF if this call
  14. >can get it so easily?
  15.  
  16. That's a good question.  Our understanding is that somGetGlobalEnvironment
  17. will either break or become relatively expensive when used in a threaded
  18. environment.  The safe thing to do is to synthesize a new environment on
  19. the stack.  We've created a new helper object for this purpose
  20. (FW_SOMEnvironment), and now use it instead of somGetGlobalEnvironment. I
  21. believe we created FW_SOMEnvironment after releasing 1.0d11, so don't
  22. expect to find it in your current sources.
  23.  
  24. Jim Lloyd
  25. ODF Team
  26.  
  27.